import {Service} from "@/api/request.js"
export function getActivity(params){
  return Service({
    url:"/act/api/subjectPage/getValidSubject",
    method:"get",
    headers:{
      "Content-Type":"application/x-www-form-urlencoded"
    },
    params:params
  })
}
//进入活动获取状态
export function getActivityStatus(params){
  return Service({
    url:"/act/api/subjectPage/listSubjectBlock",
    method:"get",
    headers:{
      "Content-Type":"application/x-www-form-urlencoded"
    },
    params:params
  })
}
//抽奖结果
export function getLotteryResult(data){
  return Service({
    url:"/act/api/lottery/getLotteryResult",
    method:"get",
    headers:{
      "Content-Type":"application/x-www-form-urlencoded",
      "Authorization":"bba3d5abab624165bcc39408a3fb07f9"
    },
    data:data,
  })
}
//中奖记录
export function getRecordList(params){
  return Service({
    url:"/act/api/lottery/getRecordList",
    method:"get",
    params:params
  })
}
//抽奖次数
export function getLotteryInfo(params){
  return Service({
    url:"/act/api/lottery/info",
    method:"get",
    params
  })
}